package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description NursingProjectMapper
 * @Author Wen Jie
 * @Date 2024-09-05
 */
@Mapper
public interface NursingProjectMapper {
    Page<NursingProject> getByPage(String name, Integer status);

    void addNursingProject(NursingProject nursingProject);

    NursingProject getById(Long id);

    void updateNursingProject(NursingProject nursingProject);

    void deleteById(Long id);

    List<NursingProject> getAll();

    void updateStatusById(Long id, Integer status);


    int countById(Long id);

    int getStatusById(Long id);
}
